///////////////////////////////////////////////////////////
//  OQLSimpleCondition.h
//  Implementation of the Class OQLSimpleCondition
//  Created on:      23-sep-2007 21:26:17
///////////////////////////////////////////////////////////

#if !defined(EA_7F1C82D6_7F1D_46aa_916C_6D2B54621884__INCLUDED_)
#define EA_7F1C82D6_7F1D_46aa_916C_6D2B54621884__INCLUDED_


#include "OQLCondition.h"
#include "../../indexado/fuentes/OrganizationCommons.h"
#include <string>
#include "ListPersistent.h"


class OQLSimpleCondition : public OQLCondition {

public:
	OQLSimpleCondition();
	OQLSimpleCondition(campo* att, std::string op, std::string value );
	virtual ~OQLSimpleCondition();
	campo* getAttribute();
	void setAttribute(campo* atributo);
	std::string getOperator();
	void setOperator(std::string operador);
	std::string getValue();
	void setValue (std::string val);
	std::string getTable() { return table; }
	void setTable(std::string tabla) { table.assign(tabla); }
	virtual ListPersistent resolve(std::string table);
	void erase();
	virtual std::string getName();
	
private:
	campo* atributte;
	std::string operat;
	std::string value;
	

};
#endif // !defined(EA_7F1C82D6_7F1D_46aa_916C_6D2B54621884__INCLUDED_)
